/*
 ============================================================================
 Page	     : 522
 Name        : preproc.c
 Date	     : 20210408
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 简单的预处理示例
 ============================================================================
 */

#include <stdio.h>
#define TWO 2		/* 可以使用注释 */
#define OW "Consistency is the last refuge of the unimagina\
tive. - Oscar Wilde"	/* 反斜杠把该定义延续到下一行 */

/* 原文 Consistency is the last refuge of the unimaginative. - Oscar Wilde */
/* 一致性是无想象力者最后的避难所。——奥斯卡•王尔德 */

#define FOUR TWO*TWO
#define PX printf("X is %d.\n", x)
#define FMT "X is %d.\n"

int main(void)
{
	int x = TWO;

	PX;
	x = FOUR;
	printf(FMT, x);
	printf("%s\n", OW);
	printf("TWO: OW\n");

	return 0;
}

